import { ApiResult, post, get } from "@/util/request";

//咨询分页查询
export async function pageInfo(params?: any): Promise<ApiResult<any>> {
  return await post<any>("/manage/v1/info/pageInfo", params);
}
//咨询发布
export async function publishInfo(params?: any): Promise<ApiResult<any>> {
  return await post<any>("/manage/v1/info/publishInfo", params);
}
//咨询新增编辑
export async function saveOrUpdate(params?: any): Promise<ApiResult<any>> {
  return await post<any>("/manage/v1/info/saveOrUpdate", params);
}
//咨询置顶，禁用，删除，轮播设置
export async function updateInfoOther(params?: any): Promise<ApiResult<any>> {
  return await post<any>("/manage/v1/info/updateInfoOther", params);
}
//根据id查询咨询详情
export async function selectInfoById(params?: any): Promise<ApiResult<any>> {
  return await get<any>("/manage/v1/info/selectInfoById", params);
}
